package common

import (
	"encoding/json"
)

func DecodeJson(jsonStr []byte) map[string]interface{} {
	result := map[string]interface{}{}
	errors := json.Unmarshal(jsonStr, &result)
	if errors == nil {
		return result
	}
	panic("解析异常")
}
